﻿using System;
using System.Collections.Generic;
using System.Text;

namespace HGZP.DAL
{
    public class ConnectStringTemplate
    {
        static private string sqlserver = @"data source=MyServerName;initial catalog =MyDatabase;User ID=MyUserID;password=MyPassword";
        static private string sybase12_5 = @"Provider=Sybase.ASEOLEDBProvider.2;Initial Catalog=MyDatabase;User ID=MyUserID;Password=MyPassword;Data Source=MyServerName;Network Protocol=Winsock;Server Port Address=5000";
        static private string sybase12_5_4 = @"Provider=ASEOLEDB;Initial Catalog=MyDatabase;User ID=MyUserID;Password=MyPassword;Data Source=MyServerName:5000;Network Protocol=Winsock;Server Port Address=5000";
        //
        private List<string> connectTypeList = new List<string>();

        public List<string> ConnectTypeList
        {
            get { return connectTypeList; }
            set { connectTypeList = value; }
        }
        //
        static public string Sqlserver
        {
            get { return sqlserver; }
            set { sqlserver = value; }
        }
        static public string Sybase12_5
        {
            get { return sybase12_5; }
            set { sybase12_5 = value; }
        }
        static public string Sybase12_5_4
        {
            get { return sybase12_5_4; }
            set { sybase12_5_4 = value; }
        }
        //
        public ConnectStringTemplate()
        {
            connectTypeList.Clear();
            connectTypeList.Add("Sqlserver");
            connectTypeList.Add("Sybase12_5");
            connectTypeList.Add("Sybase12_5_4");

        }

    }
    //

    //
}
